extern crate serde_json;
extern crate spc;

use self::serde_json::Value;
use self::spc::cmd::doit;
use base::client;
use lazy_static::lazy_static;

lazy_static! {
    static ref CLIENT: client::Client = client::Client::new();
}

#[allow(dead_code)]
pub async fn dourl(data: &Value, cmd: &str) -> Result<Value, Value> {
    doit(data, cmd, &CLIENT).await
}
